package com.scud.product.mapper;

import com.scud.model.product.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author vermouth
 */

@Mapper
public interface CategoryMapper {
    //查询所有数据
    List<Category> selectAll();

    //根据id查询分类
    Category selectById(Integer id);

    //根据分类名称查询分类id
    Category selectByName(String name);
}
